import { forwardRef, Module } from '@nestjs/common';
import { SysUserService } from './sys-user.service';
import { SysUserController } from './sys-user.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { SysUser } from './entities/sys-user.entity';
import { SysDeptModule } from '../sys-dept/sys-dept.module';
import { SysRoleModule } from '../sys-role/sys-role.module';
import { SysRole } from '../sys-role/entities/sys-role.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([SysUser, SysRole]),
    SysDeptModule,
    forwardRef(() => SysRoleModule),
  ],
  controllers: [SysUserController],
  providers: [SysUserService],
  exports: [SysUserService],
})
export class SysUserModule {}
